from flask_app.celery_tasks import celery_app

if __name__ == "__main__":
    argv = [
        '--app=flask_app.celery_tasks.tasks',
        'worker',
        '--loglevel=info',
        '--heartbeat-interval=30'
    ]

    celery_app.worker_main(argv)